package com.isoft.data.dao;

import com.isoft.data.xml.Bore;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface BoreDao {
    @Insert("insert into BORE(SEQN,DDTM,FLID,FFID,FIDE,FATT,STAT,ISTA,BORT,MSTA,MIST,MBOR) " +
            "values(#{bore.meta.seqn},#{bore.meta.ddtm},#{bore.dflt.flid},#{bore.dflt.ffid},#{bore.dflt.fide}," +
            "#{bore.dflt.fatt},#{bore.dflt.stat},#{bore.dflt.ista},#{bore.dflt.bort},#{bore.dflt.msta}" +
            ",#{bore.dflt.mist},#{bore.dflt.mbor})")
    void addBore(@Param("bore") Bore bore);
}
